package com.aisoback.common;

public enum Code {
    SUCCESS(2000, "请求成功", ""),
    PARAMS_ERROR(4000, "请求参数错误", ""),
    NOT_FOUND(4040, "请求数据不存在", ""),
    SYSTEM_ERROR(5000, "系统内部异常", "");

    private final Integer code;
    private final String message;
    private final String description;

    Code(Integer code, String message, String description) {
        this.code = code;
        this.message = message;
        this.description = description;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    public String getDescription() {
        return description;
    }
}
